import 'package:ducafe_ui_core/ducafe_ui_core.dart';
import 'package:flutter/material.dart';

AppBar myAppBar({String title = "", VoidCallback? onBackPressed}) {
  return AppBar(
    backgroundColor: Colors.white,
    centerTitle: true,
    elevation: 3,
    shadowColor: const Color(0xFF000000),
    title: Text(
      title,
      style: TextStyle(fontSize: 18.sp, color: const Color(0xff223141)),
    ),
    leading: IconButton(
      onPressed: () {
        onBackPressed?.call();
      },
      icon: Icon(Icons.arrow_back_ios, color: const Color(0xFF333333)),
    ),
  );
}
